"""定义菜单模型类的文件."""
from typing import List

from pydantic import BaseModel


class MenuBase(BaseModel):
    """菜单响应基本模型"""
    me_id: int
    me_name: str
    me_link: str
    me_order: int
    me_mobile_use: int
    me_target: str
    me_code: str
    me_use: int


class MenuResponse(MenuBase):
    """菜单响应模型"""
    sub: List[MenuBase]
